home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr05 / ddeexamp.zip / MAKEFILE < prev    next >
Text File  |  1993-07-08  |  2KB  |  97 lines

  1. ##### Module Macro #####
  2. NAME    = ddeexec
  3. SRCS    = $(NAME).c stddde.c status.c init.c dde.c execfns.c
  4. OBJS    =
  5.  
  6. ##### C7 #####
  7. C7     =  1
  8.  
  9. ##### Library Macro #####
  10. !if $(C7)
  11. LIBS    = libw slibcew ddeml oldnames
  12. !else
  13. LIBS    = libw slibcew ddeml
  14. !endif
  15. MOD    = -AS
  16.  
  17. ##### Include Macro #####
  18. INCLS    = $(NAME).h stddde.h
  19.  
  20. ##### Resource Macro #####
  21. RCFILES = $(NAME).ico $(NAME).rc
  22.  
  23. ##### DEBUG Defined #####
  24. DEBUG    = 1
  25.  
  26. ##### Build Option Macros #####
  27. !if $(DEBUG)
  28. DDEF    = -DDEBUG
  29. CLOPT    = -Zid -Od -DSTRICT
  30. MOPT    = -Zi
  31. LOPT    = /CO /LI /MAP
  32. !else
  33. DDEF    =
  34. CLOPT    = -Os -DSTRICT
  35. LOPT    =
  36. !endif
  37.  
  38. ##### General Macros #####
  39. DEF    =
  40.  
  41. ##### Tool Macros #####
  42. ASM    = masm -Mx $(MOPT) $(DDEF) $(DEF)
  43. CC    = cl -nologo -c $(MOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
  44. LINK    = link /NOD /NOE $(LOPT)
  45. RC    = rc $(DDEF) $(DEF)
  46. HC    = hc
  47.  
  48. ##### Inference Rules #####
  49. .c.obj:
  50.     $(CC) $*.c
  51.  
  52. .asm.obj:
  53.     $(ASM) $*.asm;
  54.  
  55. .rc.res:
  56.     $(RC) -r $*.rc
  57.  
  58. ##### Main (default) Target #####
  59. goal: $(NAME).exe
  60.  
  61. ##### Dependents For Goal and Command Line #####
  62. $(NAME).exe: $(SRCS:.c=.obj) $(NAME).def $(NAME).res
  63.     $(LINK) @<<
  64.     $(SRCS:.c=.obj) $(OBJS),
  65.     $(NAME).exe,
  66.     $(NAME).map,
  67.     $(LIBS),
  68.     $(NAME).def
  69. <<
  70.     $(RC) -T $(NAME).res
  71. !if $(DEBUG)
  72. !if !$(C7)
  73.     cvpack -p $(NAME).exe
  74. !endif
  75.     mapsym $(NAME).map
  76. !endif
  77.  
  78. ##### Create a WinWord compatible RTF text file
  79. docs: stddde.c stddde.d
  80.     extract -o stddde.ex stddde.c stddde.d
  81.     docfmt -rd -o stddde.doc stddde.ex
  82.     -del stddde.ex
  83.     -del *.xxx
  84.     -del stddde.log
  85.  
  86.  
  87. ##### Dependents #####
  88. $(SRCS:.c=.obj): $(INCLS)
  89. $(NAME).res: $(RCFILES) $(INCLS)
  90.  
  91. ##### Clean Directory #####
  92. clean:
  93.     -del *.obj
  94.     -del *.res
  95.     -del *.map
  96.     -del *.sym
  97.